<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="Stylesheet" href="css/ui-lightness/jquery-ui-1.10.4.custom.css">
<style type="text/css">
	.emptable {
		background-color: gray;
	}
</style>
<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="script/PDT1010P0.js" defer="defer"></script>
</head>
<body>
<input type="hidden" id="mode" name="mode" value="${mode }">
<form id="frm" name="frm"  method="post" enctype="multipart/form-data">
	<table border="1" cellpadding="0" cellspacing="0" align="center">
		<tr>
			<td class="emptable">주담당자 사원번호<a href="javascript:searchEmp()">검색</a></td>
			<td><input type="text" id="employeeName" name="employeeName" value="${productInfo.EMPLOYEE_ID }" disabled="disabled"></td>
			<td class="emptable">주담당자 성명/부서</td>
			<td><input type="text" id="name" name="name" value="${productInfo.NAME }" disabled="disabled"><input type="text" id="dept_code" name="dept_code" value="${productInfo.DEPT_NAME }" disabled="disabled"></td>
		</tr>
		<tr>
			<td class="emptable">상품코드</td>
			<td><input type="text" id="productCode" name="productCode" value="${productInfo.PRODUCT_CODE }"></td>
			<td class="emptable">상품명</td>
			<td><input type="text" size="46px" id="productName" name="productName" value="${productInfo.PRODUCT_NAME }"></td>
		</tr>
		<tr>
		
			<td class="emptable">품목명</td>
			<td>
				<select id="itemCode" name="itemCode">
					<c:forEach var="i" items="${itemName }">
						<option value="${i.itemCode }"
							<c:if test="${i.itemCode == productInfo.ITEM_CODE }">selected="selected"</c:if>
						>${i.itemName }</option>
					</c:forEach>
				</select>
			</td>
			<td class="emptable">카테고리</td>
			<td><input type="text" size="46px" id="category" name="category" value="${productInfo.CATEGORY_NAME }" disabled="disabled"></td>
		</tr>
		<tr>
			<td class="emptable">제조사</td>
			<td>
				<select id="manufactureCode" name="manufactureCode">
					<c:forEach var="i" items="${CodeZip.MANUFACTURE }">
						<option value="${i.code_detail }"
							<c:if test="${i.code_detail == productInfo.MANUFACTURE_CODE }">selected="selected"</c:if>
						>${i.code_name }</option>
					</c:forEach>
				</select>
			</td>
			<td class="emptable">상품번호</td>
			<td><input type="text" size="46px" id="productNum" name="productNum" value="${productInfo.PRODUCT_NUM }" disabled="disabled"></td>
		</tr>
		<tr>
			<td class="emptable">규격</td>
			<td colspan="3" height="10%"><input type="text" size="103px" id="standard" name="standard" value="${productInfo.STANDARD}"></td>
		</tr>
		<tr>
			<td class="emptable">단위</td>
			<td>
				<select id="unitCode" name="unitCode">
					<c:forEach var="i" items="${CodeZip.UNIT }">
						<option value="${i.code_detail }"
							<c:if test="${i.code_detail == productInfo.UNIT_CODE }">selected="selected"</c:if>
						>${i.code_name}</option>
					</c:forEach>
				</select>
			</td>
			<td class="emptable">단가</td>
			<td><input type="text" size="46px" id="unitPrice" name="unitPrice" value="${productInfo.UNIT_PRICE }"></td>
		</tr>
		<tr>
			<td class="emptable">첨부파일</td>
			<td colspan="3">
				<input type="file" value="파일첨부" id="file" name="file">													
				<a href="doDownLoad.do?fileName=${productInfo.FILENAME }" id="filedown" name="filedown"> ${productInfo.FILENAME } 파일다운</a>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<input type="button" value="삭제" id="delete">
				<input type="button" value="수정" id="modify">
				<input type="button" value="저장" id="save">
				<input type="button" value="취소" id="cancel">
			</td>
		</tr>
	</table>
</form>
${errMsg } 
${successMsg }
${refersh }

</body>
</html>